﻿/*
 * Erstellt mit SharpDevelop.
 * Benutzer: Kai Patrick
 * Datum: 20.04.2008
 * Zeit: 11:55
 * 
 * Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
 */

using System;

namespace Gamadus.Builder
{
	/// <summary>
	/// Description of SourceLocation.
	/// </summary>
	public struct SourceLocation
	{
		public string Object;
		public string Event;
		public int Line;
		public int Col;
		
		public SourceLocation(Irony.Compiler.SourceLocation location, string obj, string evnt)
		{
			Object = obj;
			Event = evnt;
			Line = location.Line;
			Col = location.Column;
		}
		public SourceLocation(SourceLocation location1, Irony.Compiler.SourceLocation location2)
		{
			Object = location1.Object;
			Event = location1.Event;
			Line = location2.Line;
			Col = location2.Column;
		}
	}
}
